 <#include "app/flow/business-data/filters/filter-for-todo-bid.ftl">

<table class="my-new-bid">
	<tr class="title-row">
		<th class="text-center" width="190">项目编号</th>
		<th class="text-center">项目名称</th>
		<th class="text-center" width="160">投标状态</th>
		<th class="text-center" width="190">招标编号</th>
		<th class="text-center" width="160">招标方式</th>
	</tr>
	<#if data??> <#list data as b>
	<tr onclick="window.open('${request.contextPath}/bid/view/${b.id}','_blank');" style="cursor: pointer;">
		<td class="text-center">${b.projectNo}</td>
		<td class="text-center">${b.name}</td>
		<td class="text-center">${b.status.value}</td>
		<td class="text-center">${b.bidNo}</td>
		<td class="text-center">${b.bidWay}</td>
	</tr>
	</#list> </#if>
</table>

<script src="${request.contextPath}/js/suredy-list.js"></script>
<script src="${request.contextPath}/core/js/jquery.form.js"></script>
<script type="text/javascript">
	$(function() {
		$('table.my-new-bid').list({
			header : false,
			footer : false
		});

		$('.filter-search').on('click', function() {
			var form = $('form.filter-form');

			form.ajaxSubmit({
				dataType : 'html',
				success : function(html, textStatus, jqXHR) {
					if (!html)
						return false;

					$('div.suredy-content').html(html);
				},
				error : function(jqXHR, textStatus, errorThrown) {
					return false;
				}
			});
		});

		$('.filter-reset').on('click', function() {
			$('form.filter-form input').val('');
			$('form.filter-form option:first-child').prop('selected', true);
		});
	});
</script>
